package jgl.vajra.management.part.order.contract;

import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.management.bean.OpenCityBean;
import jgl.vajra.management.databinding.ActivityReceivingAreaBinding;
import jgl.vajra.management.widget.mvvm.model.BaseModel;
import jgl.vajra.management.widget.mvvm.view.BaseMVVMView;
import jgl.vajra.management.widget.mvvm.viewmodel.BaseViewModel;

public class ReceivingAreaContract {
    public abstract static class Model extends BaseModel {
        public abstract Observable<OpenCityBean> getOpenCityData(Map<String, Object> map);
    }

    public interface View extends BaseMVVMView {

        void returnOpenCityData(OpenCityBean openCityBean);

        void onChoiceProvince(int position, OpenCityBean.ProvinceListBean itemData);

        void onChoiceArea(int position, OpenCityBean.ProvinceListBean.CityListBean itemData);

        void onReset();

        void onDetermine();
    }

    public abstract static class ViewModel extends BaseViewModel<View, ActivityReceivingAreaBinding, Model> {

        public abstract void getOpenCityData(Map<String, Object> map);

    }
}
